ARM: vGICv3: re-use vgic_reg64_check_access
authorAndre Przywara <andre.przywara@arm.com>
Thu, 6 Apr 2017 19:56:31 +0000 (20:56 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 14 Jun 2017 18:38:37 +0000 (11:38 -0700)
commit4b7846ba7c6a192127df0f3a8b7ad03627953b79
tree772966e6c229cd0a1ddb0de0acb3a37fa1fe390d
parent1ba52a57247c33a09a88a52742611d5ffc8c6ed9
ARM: vGICv3: re-use vgic_reg64_check_access

vgic_reg64_check_access() checks for a valid access width of a 64-bit
MMIO register, which is useful beyond the current GICv3 emulation only.
Move this function to the vgic-emul.h to be easily reusable.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Julien Grall <julien.grall@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/vgic-v3.c
xen/include/asm-arm/vgic-emul.h